import request from '@/utils/request'

// 封装登录的接口请求
export const login = (data) => request.post('login', data)

export const getCode = (key) => request.get('captcha', { params: { key }, responseType: 'blob' })
// 获取用户可用菜单
export const getMenus = () => request.get('/menus')

